package helper;

import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.mwe.core.WorkflowContext;
import org.eclipse.emf.mwe.core.issues.Issues;
import org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent;
import org.eclipse.emf.mwe.core.monitor.ProgressMonitor;
import org.quality4spl.fm.CVMModelWrapper;

public class FMInitializer  extends AbstractWorkflowComponent {
	
	private String fmUri;
	
	public String getFmUri() {
		return fmUri;
	}

	public void setFmUri(String fmUri) {
		this.fmUri = fmUri;
	}

	@Override
	protected void invokeInternal(WorkflowContext ctx, ProgressMonitor monitor,
			Issues issues) {
		Helper.model = new CVMModelWrapper(URI.createURI(fmUri));
	}

	@Override
	public void checkConfiguration(Issues issues) {
	}

}
